<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
function viewPic(pic) {
	var picSrc;
	if($.browser.msie) {
		picSrc = pic.value;
	} else if($.browser.mozilla) {
		picSrc = window.URL.createObjectURL(pic.files[0]);
	} else {
		$.messager.show({
			title : '提示',
			msg : '请使用IE或火狐浏览器！'
		});
		return;
	}
	
	if(!checkImgType(pic)) {
		var file = $('#addDeterPerson_upImg_id');
		file.after(file.clone().val(""));   
    	file.remove();   
		return;
	}
	
	if(pic) {
		$('#moduls_fun_editDeterPerson_editForm img[name=editDeterPerson_img]').attr("src",picSrc);
	}
}
</script>
<form id="moduls_fun_editDeterPerson_editForm" method="post" enctype="multipart/form-data">
<input type="file" id="editDeterPerson_upImg_id" name="pic" style="display: none;" onchange="viewPic(this);"/>
	<input name="dpId" style="display: none;" hidden="true" />
	<input name="personPic" style="display: none;" hidden="true" />
	<table style="width: 460px; border: 0">
		<tr>
			<td width="100" rowspan="5"><img name="editDeterPerson_img" src="" width="108" height="129" />
			</td>
			<td width="157" height="25" align="center">姓名:</td>
			<td width="179" height="25"><select id="moduls_fun_addDeterPerson_userId" name="userId" data-options="disabled: true" style="display: none;width:160px;"></select>
			</td>
		</tr>
		<tr>
			<td height="25" align="center">岗位:</td>
			<td height="25"><input name="posId" class="easyui-combobox" style="width: 160px;" data-options="valueField:'posId',textField:'posName',required:true,url:'${pageContext.request.contextPath}/positionAction!getPositionComboBoxData.action'" /></td>
		</tr>
		<tr>
			<td height="25" align="center">上级:</td>
			<td height="25"><select id="moduls_fun_addDeterPerson_personSup" name="personSup" data-options="validType:'checkSup'" style="display: none;width:160px;"></select></td>
		</tr>
		<tr>
			<td height="25" align="center">下级:</td>
			<td height="25"><select id="moduls_fun_addDeterPerson_personSub" name="personSub" data-options="validType:'checkSub'" style="display: none;width:160px;"></select></td>
		</tr>
		<tr>
		<td height="25" align="center">责任对象:</td>
			<td height="25" align="center"><input name="dutyObj" type="text" style="display:block; width: 160px;" /></td>
		</tr>
	</table>
</form>